package com.java.grammer.arrays;

import java.util.Scanner;
import java.util.Arrays;

/**
 * @author luzhikun
 * @date 2020/12/7- 22:47
 */
public class Array_Test7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生人数");
        int[] a = new int[sc.nextInt()];
        System.out.println("请输入成绩");
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
        }
        System.out.println(Arrays.toString(a));
    }
}
